package gu.simplemq.stomp;


import java.util.Properties;

import gu.simplemq.MQConstProvider;

public class StompConstProvider implements MQConstProvider,StompConstants{
	public static final StompConstProvider SPROVIDER = new StompConstProvider();
	private static final String[] optionalLocationNames = new String[]{STOMP_serverURI};

	@Override
	public String getDefaultSchema() {
		return DEFAULT_STOMP_SCHEMA;
	}

	@Override
	public String getDefaultHost() {
		return DEFAULT_STOMP_HOST;
	}

	@Override
	public int getDefaultPort() {
		return DEFAULT_STOMP_PORT;
	}

	@Override
	public String getDefaultMQLocation() {
		return DEFAULT_STOMP_URI;
	}
	
	@Override
	public String getMainLocationName() {
		return STOMP_serverURI;
	}

	@Override
	public String getMainUserName() {
		return STOMP_username;
	}

	@Override
	public String getMainPassword() {
		return STOMP_password;
	}

	@Override
	public String getMainClientID() {
		return STOMP_clientId;
	}

	@Override
	public String getMainTimeout() {
		return "timeoutMills";
	}

	@Override
	public String getMainConnectTimeout() {
		return getMainTimeout();
	}

	@Override
	public String[] getOptionalLocationNames() {
		return optionalLocationNames;
	}

	public Properties getDefaultMQProperties() {
		return StompPoolLazys.DEFAULT_PARAMETERS;
	}

}
